package spring.framework.beans.factory;

import spring.framework.beans.BeansException;

import java.util.Map;

/**
 * @author fun.pengzh
 * @class spring.framework.beans.factory.ListableBeanFactory
 * @desc
 * @since 2021-10-07
 */
public interface ListableBeanFactory extends BeanFactory {

    /**
     * 按照类型返回Bean
     *
     * @param type
     * @param <T>
     * @return
     * @throws BeansException
     */
    <T> Map<String, T> getBeansOfTypes(Class<T> type) throws BeansException;

    /**
     * 返回容器中所有的Bean的名称
     */
    String[] getBeanDefinitionNames();


}
